package com.gitee.feizns.web.boot.utils;

import com.gitee.feizns.web.utils.AppUtils;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

/**
 * 方便获取springboot上下文的自动配置
 * @author feizns
 * @since 2019/7/14
 */
@Configuration
@Order(Integer.MIN_VALUE)
@AutoConfigureOrder(Integer.MIN_VALUE)
public class AppUtilsAutoConfiguration {

    @Bean
    public AppUtils appUtils(ApplicationContext act) {
        return new AppUtils(act);
    }

}